home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Communication / LibraryOfCongress / Source / util.h < prev   
Text File  |  1994-05-21  |  954b  |  26 lines

  1. #import <stdio.h>
  2. #import <sys/types.h>
  3.  
  4. #define Case break; case
  5. #define Default break; default
  6. extern char *_arg, *_argp; /* use by 'for_each_argument */
  7. extern char *av0;       /* will hold name of the command */
  8. #define argument  (_arg=(*_argp? _argp : av[++i==ac? --i : i]),_argp+=strlen(_argp),_arg)
  9. #define for_each_argument av0 = av[0]; for (i=1;i<ac && *av[i]=='-';i++)\
  10.                         for (_argp = &av[i][1]; *_argp;)\
  11.                                 switch(*_argp++)
  12.  
  13. extern void stripnl(), stripcomment(), error(), debug(), stot(), squishblank();
  14. extern void squishwhite(), substr(), sub();
  15. // extern char *malloc(), *calloc();
  16. //extern char *index(), *rindex();
  17. extern int System(), match();
  18. extern int Verbose;
  19. extern suffix(), blank();
  20. extern int atoi();
  21. // extern double atof();
  22. char *save(), *skipsp(), *prefix(), *strindex();
  23. extern fMode(), fDirectory(), fLink(), fTime(), mkdirs();
  24.  
  25. #define Alloc(x) (x *)calloc(1,sizeof(x))
  26.